package com.example.aquerydocument;

import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;

import com.androidquery.AQuery;

public class MainActivity extends Activity {
	AQuery q;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
         q = new AQuery(this);
        q.id(R.id.textview).text("Hello A Mo To");
        q.id(R.id.button).text("CLick").clicked(this, "buttonClick");
        
        
    }

    public void buttonClick(View object)
    {
    	q.id(R.id.textview).text("Hello Again!");
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }
    
}
